package com.cmcc.zysoft.infocollection.model;

// Generated 2013-8-13 16:56:59 by Hibernate Tools 3.2.2.GA


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import com.cmcc.zysoft.infocollection.model.Industry;

/**
 * ResourceProperty generated by hbm2java
 */

@Entity
@Table(name="tb_c_resource_property")
public class ResourceProperty implements java.io.Serializable {

	private static final long serialVersionUID = 9159085217651372437L;
	private String resourcePropertyId;
	private Industry industry;
	private String resourcePropertyName;
	private String resourcePropertyEnname;
	private String resourcePropertyFlag;
	private String mark4;
	private String mark3;
	private String mark2;
	private String mark1;

	public ResourceProperty() {
	}

	public ResourceProperty(String resourcePropertyId) {
		this.resourcePropertyId = resourcePropertyId;
	}

	public ResourceProperty(String resourcePropertyId, Industry industry,
			String resourcePropertyName, String resourcePropertyEnname,
			String resourcePropertyFlag, String mark4, String mark3,
			String mark2, String mark1) {
		this.resourcePropertyId = resourcePropertyId;
		this.industry = industry;
		this.resourcePropertyName = resourcePropertyName;
		this.resourcePropertyEnname = resourcePropertyEnname;
		this.resourcePropertyFlag = resourcePropertyFlag;
		this.mark4 = mark4;
		this.mark3 = mark3;
		this.mark2 = mark2;
		this.mark1 = mark1;
	}

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "resource_property_id", unique = true, nullable = false, length = 32)
	public String getResourcePropertyId() {
		return this.resourcePropertyId;
	}

	public void setResourcePropertyId(String resourcePropertyId) {
		this.resourcePropertyId = resourcePropertyId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "industry_id")
	public Industry getIndustry() {
		return this.industry;
	}

	public void setIndustry(Industry industry) {
		this.industry = industry;
	}

	@Column(name = "resource_property_name", length = 200)
	public String getResourcePropertyName() {
		return this.resourcePropertyName;
	}

	public void setResourcePropertyName(String resourcePropertyName) {
		this.resourcePropertyName = resourcePropertyName;
	}

	@Column(name = "resource_property_enname", length = 200)
	public String getResourcePropertyEnname() {
		return this.resourcePropertyEnname;
	}

	public void setResourcePropertyEnname(String resourcePropertyEnname) {
		this.resourcePropertyEnname = resourcePropertyEnname;
	}

	@Column(name = "resource_property_flag", length = 1)
	public String getResourcePropertyFlag() {
		return this.resourcePropertyFlag;
	}

	public void setResourcePropertyFlag(String resourcePropertyFlag) {
		this.resourcePropertyFlag = resourcePropertyFlag;
	}

	@Column(name = "mark4", length = 200)
	public String getMark4() {
		return this.mark4;
	}

	public void setMark4(String mark4) {
		this.mark4 = mark4;
	}

	@Column(name = "mark3", length = 200)
	public String getMark3() {
		return this.mark3;
	}

	public void setMark3(String mark3) {
		this.mark3 = mark3;
	}

	@Column(name = "mark2", length = 200)
	public String getMark2() {
		return this.mark2;
	}

	public void setMark2(String mark2) {
		this.mark2 = mark2;
	}

	@Column(name = "mark1", length = 200)
	public String getMark1() {
		return this.mark1;
	}

	public void setMark1(String mark1) {
		this.mark1 = mark1;
	}
}